import loginService from '../service/login.service.js'

class LoginController {
    /**
     * @param {import("koa").ParameterizedContext} ctx
     */
    async login(ctx) {
        const { username, password, uuid, captcha } = ctx.request.body
        ctx.body = await loginService.login(username, password, uuid, captcha)
    }
}

export default new LoginController()
